<script>
			/**
 			 * 积分签到
			*/
			 $(".qian").on('click', function (e)
    {
             e.preventDefault();

             $.post('{php echo $this->createMobileUrl('qian',array('type'=>'uids'))}', { p: 1 }, function(data){
    
             $('.qiandao').html(data);
             location.reload();
         
            })



    });
</script>


   <script>
    wx.ready(function () {
        sharedata = {
            title: '<?php echo $settings[0]['fenxiangtitle'];?>',
            desc: '<?php echo $settings[0]['fenxiangshuoming'];?>',
            link: '<?php echo $_W[siteurl].'&fx=1';?>',
            imgUrl: '<?php echo tomedia($settings[0]['fengxiangimg']);?>',
            success: function(){
              //  alert('success');
            },
            cancel: function(){
               // alert('cancel');
            }
        };
        wx.onMenuShareAppMessage(sharedata);
		
		
		wx.onMenuShareTimeline({
    title: '<?php echo $settings[0]['fenxiangtitle'];?>', // 分享标题
    link: '<?php echo $_W[siteurl].'&fx=1';?>', // 分享链接
    imgUrl: '<?php echo tomedia($settings[0]['fengxiangimg']);?>', // 分享图标
    success: function () { 
        // 用户确认分享后执行的回调函数
    },
    cancel: function () { 
        // 用户取消分享后执行的回调函数
    }
});
		
		
		
		
		
		
		
		
    });
	
	{if $this->settings[0]['jingyong'] == 0}

	
		function onBridgeReady(){
		 WeixinJSBridge.call('hideOptionMenu');
		}

		if (typeof WeixinJSBridge == "undefined"){
			if( document.addEventListener ){
				document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
			}else if (document.attachEvent){
				document.attachEvent('WeixinJSBridgeReady', onBridgeReady); 
				document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
			}
		}else{
			onBridgeReady();
		}
	
	
	
	{else}

	{/if}
	

	
	
	
	
	
	
	
    </script>

	<style>
	       #audio_btn {
				position: fixed;
				right: 10px;
				top: 18px;
				z-index: 200;
				display: none;
				width: 50px;
				height: 50px;
				background-repeat: no-repeat;
				cursor: pointer;
			}
			
			.off {
				background: url({TEMPLATE_PATH}images/music_off.png);
				background-size: 30px 30px;
			}
			
			.play_yinfu {
    background-image: url({TEMPLATE_PATH}images/music.gif);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 60px 60px;
}


.rotate {
    left: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    background-size: 100% 100%;
    background-image: url({TEMPLATE_PATH}images/music_off.png);
    -webkit-animation: rotating 1.2s linear infinite;
    -moz-animation: rotating 1.2s linear infinite;
    -o-animation: rotating 1.2s linear infinite;
    animation: rotating 1.2s linear infinite;
	
	
	
	 

}

#yinfu{
    background-image: url({TEMPLATE_PATH}images/music_off.png);
	
	left: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    background-size: 100% 100%;
	
	
}

.rotate {
     -webkit-animation: rotating 1.2s linear infinite;
     -moz-animation: rotating 1.2s linear infinite;
     -o-animation: rotating 1.2s linear infinite;
     animation: rotating 1.2s linear infinite
 }
 
 @-webkit-keyframes rotating {
    from { -webkit-transform: rotate(0) }
     to { -webkit-transform: rotate(360deg) }
 }
 
 @keyframes rotating {
     from { transform: rotate(0) }
    to { transform: rotate(360deg) }
 }
@-moz-keyframes rotating {
     from { -moz-transform: rotate(0) }
     to { -moz-transform: rotate(360deg) }
 }

	
	</style>
	
	
{if $this->settings[0]['audio'] == ''}

{else}

<div class="video_exist play_yinfu" id="audio_btn" style="display: block;">
	
	
	    <div id="yinfu" class="rotate"></div>
	   <!-- <audio preload="auto" autoplay="autoplay" id="media" src="http://wx.zc91.cn/zry.mp3" loop=""></audio> -->
	   
	  <audio preload="auto" autoplay="autoplay" id="media" src="<?php echo tomedia($this->settings[0]['audio']);?>" loop=""></audio> 
	 
	
</div>

{/if}
	
	
	
<script>

 var x = document.getElementById("media"); 
$("#yinfu").click(function(){
 
	 $(this).toggleClass("rotate"); //控制音乐图标 自转或暂停
	 
	 
	  //控制背景音乐 播放或暂停            
         if($(this).hasClass("rotate")){
            x.play();
        }else{
            x.pause();
        }
	 
	 
 })

$("#audio_btn").click(function(){

   $(this).toggleClass("play_yinfu"); //控制音乐图标 自转或暂停
 
	 
 })

</script>
</body></html>